package com.wuchao.single;

/**
 * @Author wuchao66
 * @Date 2023/10/23 14:10
 * @PackageName:com.wuchao.single
 * @ClassName: InnerSingle
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class InnerSingle {//内部静态类，折中的最优解
    private InnerSingle(){}
    private static class Inner{
        private static InnerSingle innerSingle=new InnerSingle();
    }
    public static  InnerSingle getInstance(){
        return Inner.innerSingle;
    }
}
//双检索 登记室  枚举